﻿package mortal.game.scene3D.model.data
{
    import flash.utils.*;

    public class ActionType extends Object
    {
        public static const Stand:String = "stand";
        public static const Walking:String = "run";
        public static const attack:String = "attack";
        public static const leadStart:String = "leadStart";
        public static const leading:String = "leading";
        public static const Injury:String = "hurt";
        public static const Death:String = "die";
        public static const Jump:String = "jump";
        public static const Sit:String = "sit";
        public static const Speical:String = "Speical";
        public static const Sunbath:String = "Sunbath";
        public static const Wine:String = "Wine";

        public function ActionType()
        {
            return;
        }// end function

        public static function isAttackAction(param1:String) : Boolean
        {
            return ActionName.attackActionList.indexOf(param1) != -1;
        }// end function

        public static function isLeadStartAction(param1:String) : Boolean
        {
            return Boolean(ActionName.leadActionDic[param1]);
        }// end function

        public static function isLeadingAction(param1:String) : Boolean
        {
            var _loc_3:String = null;
            var _loc_2:* = ActionName.leadActionDic;
            if (param1 == ActionName.Tornado)
            {
                return true;
            }
            for each (_loc_3 in _loc_2)
            {
                
                if (_loc_3 == param1)
                {
                    return true;
                }
            }
            return false;
        }// end function

        public static function isWalkAction(param1:String) : Boolean
        {
            return ActionName.walkingActionList.indexOf(param1) >= 0;
        }// end function

        public static function isStandAction(param1:String) : Boolean
        {
            return ActionName.standActionList.indexOf(param1) >= 0;
        }// end function

        public static function isInjuryAction(param1:String) : Boolean
        {
            return ActionName.injuryActionList.indexOf(param1) >= 0;
        }// end function

        public static function isDeathAction(param1:String) : Boolean
        {
            return ActionName.deathActionList.indexOf(param1) >= 0;
        }// end function

        public static function isJumpAction(param1:String) : Boolean
        {
            return ActionName.jumpActionList.indexOf(param1) >= 0;
        }// end function

    }
}
